package com.zuoye2.domain;

public class Cat {
    //属性
    //毛的颜色
    private String color;
    //品种
    private String breed;

    //构造参数
    //无参
    public Cat(){}
    //有参（满参）
    public Cat(String color,String breed){
        this.color=color;
        this.breed=breed;
    }
    //set/get
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getBreed() {
        return breed;
    }
    public void setBreed(String breed) {
        this.breed = breed;
    }

    //成员方法（行为）
    public void eat(){
        System.out.println(color+"的"+breed+"正在吃鱼.....");
    }
    public void catchMouse(){
        System.out.println(color+"的"+breed+"正在逮老鼠.....");
    }
}
